package cn.hacynn.nd.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Hacynn
 * @Date 2024/5/28 9:58
 * @Version 1.0
 */
@Component
@ConfigurationProperties(prefix = "nd.redis")   // 配置属性类, 从 yml 中取值
@Data
public class RedisProperties {

    // 保险箱密钥存活时间
    private long secureCaseKeyLifetime;
    // 验证码有效时间
    private long emailCodeLifetime;

}
